package com.ktjiaoyu.yuanzihuan.service;


import com.ktjiaoyu.yuanzihuan.bean.Article;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ArticleServiceImpTester {

    @Resource
    private ArticleService articleService;

    @Test
    public void test1(){
        List<Article> list = articleService.findByEnabledAndOrderByOrderNoAscBiz();
        System.out.println(list.size());
    }
}
